package com.example.demo.service.tools;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Steven on 14-9-25.
 */

public class ResponseMessage {
    private int status;
    private String msg;
    private Map<String, Object> data;

    public ResponseMessage(int status) {
        this.status = status;
        this.msg = "";
        this.data = new HashMap<String, Object>();
    }

    public ResponseMessage(int status, String msg) {
        this.status = status;
        this.msg = msg;
        this.data = new HashMap<String, Object>();
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public void addContent(String key, Object value) {
        data.put(key, value);
    }
}
